package com.announcement.sevice;

import com.announcement.entity.Message;
import com.announcement.entity.vo.Page;

public interface MessageService {

	boolean addArticle(Message msg);

	Page<Message> showArticleToHome(int pageIndex);

	boolean deleteArticle(int messId);

	Message showArticleById(int messId);

	Page<Message> showMyArticle(int pageIndex, int userId);

	boolean updateArticle(Message msg);

	Page<Message> searchArticle(int pageIndex, String keywords);

}
